package com.acme.exceptions;

public class OverDraftLimitExceededException extends NotEnoughFundsException {

	String error = "Not enough overdraft: ";
	String clientBalance = "Client balance value: ";
	String clientOverdraft = "Client overdraft value: ";
	String maxValueToPay = "Maximum value for this client: ";
	private double amount;
	private double balance;
	private double overdraft;

	public OverDraftLimitExceededException(final double amount) {
		super(amount);
		this.amount = amount;
	}

	public OverDraftLimitExceededException(final double amount, double balance,
			double overdraft) {
		super(amount);
		this.amount = amount;
		this.balance = balance;
		this.overdraft = overdraft;
	}

	public String getOverdraftError() {
		return error + amount;
	}

	public void getClientBalance() {
		System.out.println(clientBalance + balance);
	}

	public void getClientOverdraft() {
		System.out.println(clientOverdraft + overdraft);
	}

	public void maxClientSum() {
		System.out.println(maxValueToPay + (balance + overdraft));
	}
}
